package HLLib.handfere.HLCommunityData;

import HLLib.base.HLList;

public class HLListEx {
    public int page;

    public String name;

    public HLList list;

    public HLListEx() {
    }

    public HLListEx(String name) {
        this.name = name;
    }

    public void Add(Object friend) {
        if (list == null)
            list = new HLList();
        list.Add1(friend);
    }

    public void Remove(Object friend) {
        if (list != null) {
            for (int i = list.items.length - 1; i >= 0; i--) {
                if (friend == list.items[i]) {
                    list.RemoveAt(i);
                }
            }
        }
    }
}
